$(function () {
   
   // 删除店铺
   $('#mws-container .btn-del').on('click', function () {
      if (!confirm('您确定删除该选项吗')) return
      const tr = $(this).parents('tr')
      const id = $(this).attr('data-id')
      const logo = $(this).attr('data-logo')
      $.get(`/store/storedel?id=${id}&logo=${logo}`, res => {
         if (res.msg === 'ok') {
            tr.remove()
         }
      })
   })

})